<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <jsp:useBean id="rec" class="ocr.Recognition" scope="page"/>
  <jsp:useBean id="cal" class="ocr.Count" scope="page"/>
  <jsp:useBean id="test" class="ocr.Test" scope="page"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>OCR识别结果</title>
<style> 
body{background-color: #eee;}
div
{
text-align:center;
border:2px solid #a1a1a1;
padding:10px 40px; 
background:#dddddd;
width:100%;
border-radius:25px;
-moz-border-radius:25px; /* 老的 Firefox */
}
</style>
</head>
<body>
<iframe src ="introduce.html" width=100% height = "590px"></iframe>
  <div>
  <h2>
  <%
  request.setCharacterEncoding("UTF-8");
  String s =(String)request.getAttribute( "filePath");
  String text =rec.recognition(s);
  Double result = cal.jisuanStr(text);
  out.println(text);
  out.println("=");
  out.println(result);
%></h2>
  </div>
</body>
</html>